This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
Subject: LotusScript - launching file on Mac - org/eclipse/swt/program/Program.launch method not working
Feedback Type: Question
Product Area: Notes Client
Technical Area: Application Development
Platform: Mac OS X
Release: 8.5.2
Reproducible: Always
Hi folks,
A recent infestation of macs among the exec types has me tearing my hair out at the moment. Today's issue is with an export function that writes to a csv file on the local machine (I'm using the notes data directory) and then opens it for them.
Dim jSession As JavaSession
Dim jClass As JavaClass
Dim jMethod As JavaMethod
Set jSession = New JavaSession()
Set jClass = jSession.GetClass("org/eclipse/swt/program/Program")
Set jMethod = jClass.GetMethod("launch","(Ljava/lang/String;)Z")
Call jMethod.Invoke(, fName)
This works well on my Windows machine, but when I run it on my manager's mac the file does not launch.
He can launch it from the file explorer thing and it opens in Excel, so I'm thinking his machine has the whole default application thing configured properly.
Any ideas? I'm happy to go with an alternative method for opening the file if this one is not an option on the mac.
Regards,
Brendan
Feedback number WEBB8QL5UK created by ~Manny Prekisonjip on 01/17/2012
Status: Open
Comments: